-- GENERATED SPELL FOR [Morgroron] --


function spell0_21500(pUnit, Event) --@Mortal Cleave,n/a--
pUnit:FullCastSpellOnTarget(22859,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21500', 5338, 1)
end

function spell1_21500(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(38741,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21500', 9000, 1)
end

function spell2_21500(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(38750,pUnit)
pUnit:RegisterEvent('Sorts_21500', 5000, 1)
end

function Sorts_21500(pUnit, Event)
local choix_sorts_21500 = math.random(0, 2)
if choix_sorts_21500 == 0 then
pUnit:RegisterEvent('spell0_21500', 1, 1)
end
if choix_sorts_21500 == 1 then
pUnit:RegisterEvent('spell1_21500', 1, 1)
end
if choix_sorts_21500 == 2 then
pUnit:RegisterEvent('spell2_21500', 1, 1)
end
end

function mob21500_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21500', math.random(1500, 3000), 1)
end

function mob21500_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21500_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21500_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21500, 1, 'mob21500_Action')
RegisterUnitEvent(21500, 2, 'mob21500_Leave')
RegisterUnitEvent(21500, 3, 'mob21500_Kill')
RegisterUnitEvent(21500, 4, 'mob21500_Die')
